package com.baizhi.service;

import com.baizhi.entity.CmfzArticle;
import com.baizhi.entity.CmfzGuru;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ljh
 * @since 2020-08-18
 */
public interface CmfzArticleService extends IService<CmfzArticle> {


    /**
     * 查询所有
     * @return
     */
    public PageInfo<CmfzArticle> selectAllArticle(Integer page, Integer limit);

    /**
     * es+分页
     * @param page
     * @param limit
     * @param key
     * @return
     */
    public PageInfo<CmfzArticle> selectArticleByPage(Integer page, Integer limit, String key) throws IOException;

    /**
     * 逻辑删除
     * @param id
     */
    public void deleteArticle(Integer id);
}
